package com.ccn.crm.service.impl;

import com.ccn.crm.mapper.ActionMapper;
import com.ccn.crm.model.Action;
import com.ccn.crm.service.IAction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
@Service
public class ActionServiceImpl implements IAction {
    @Autowired
    private ActionMapper actionMapper;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return actionMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Action record) {
        return actionMapper.insert(record);
    }

    @Override
    public Action selectByPrimaryKey(Integer id) {
        return actionMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Action> selectAll() {
        return actionMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(Action record) {
        return actionMapper.updateByPrimaryKey(record);
    }

    @Override
    public Action selectByProduct(String product) {
        return actionMapper.selectByProduct(product);
    }

    @Override
    public List<Action> selectFirst() {
        return actionMapper.selectFirst();
    }

    @Override
    public List<Action> selectSecond() {
        return actionMapper.selectSecond();
    }

    @Override
    public List<Action> selectThird() {
        return actionMapper.selectThird();
    }

    @Override
    public Action selectByProductAndStage(String product, String extra) {
        return actionMapper.selectByProductAndStage(product,extra);
    }

    @Override
    public Date selectDateWait(String product) {
        return actionMapper.selectDateWait(product);
    }

    @Override
    public Date selectDateOk(String product) {
        return actionMapper.selectDateOk(product);
    }
}
